/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fem;
import java.util.Vector;
/**
 *
 * @author freeze
 */
public class Mesh {
    public static int MAX_H_ADAPTATION_LEVEL = 10;  // w zasadzie nie wiem jak najlepiej to rozwiazan - chwilowo zostaje w ten sposob
    public static int MAX_P_ADAPTATION_LEVEL = 6;
    
    Vector<LocalShapeFunction> localShapeFunctions;
    Vector<GlobalShapeFunction> globalShapeFunctions;
    Vector<Element> elements; // w wersji multiscale bedzie zawierala tez PaticleElementy, ale ze
                             // to klasa pochodna elementu to powinno byc w porzadku
    public Mesh()
    {
         localShapeFunctions = new Vector<LocalShapeFunction>();
         globalShapeFunctions = new Vector<GlobalShapeFunction>();
         elements = new Vector<Element>();         
    }
    public void addElement(Element e)
    {
        elements.add(e);
    }
    public void addElement(Vertex x1, Vertex x2)
    {
        elements.add(new Element(x1,x2));
    }
    public void addGlobalShapeFunction(GlobalShapeFunction gsf)
    {
        globalShapeFunctions.add(gsf);
    }
    public void addLocalShapeFunction(LocalShapeFunction lsf)
    {
        localShapeFunctions.add(lsf);
    }
}
